#include <memory>
#include <coin/proto/coin_query.pb.h>

using namespace coin::proto;


int main() {
  auto p = std::make_unique<AccountBalance>();
  AccountBalance& balance = (*p);
  for (int n = 0; n < 5000; n++) {
    balance.Clear();
    for (int m = 0; m < 1000; m++) {
      auto bal = balance.add_each_balance();
      bal->set_currency("ok");
      bal->set_total(n);
    }
    // std::cout << balance.each_balance_size() << std::endl;
  }
  balance.Clear();
  return 0;
}
